package com.sye.threadmodule.thread;

/**
 * 线程安全的单例模式
 */
public class InnerSingleton {
	
	private static class Singletion {
		private static Singletion single = new Singletion();
	}
	
	//静态内部类是线程安全的
	public static Singletion getInstance(){
		return Singletion.single;
	}
	
}
